<?php
namespace app\admin\model;


use think\Model;

class Role extends Model
{
    // 设置表名 (包含前缀)
    protected $table = '2B_role';
    // 主键
    protected $pk = 'id';

    public function roles()
    {
        return $this->belongsToMany('Auth','role_auth');
    }
}